﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Include/Admin.master" AutoEventWireup="true" CodeFile="Manage.aspx.cs" Inherits="Admin_OrderB_Manage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../../Style/Common/DatePage.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true" ID="ScriptManager1" />
    <table cellspacing="0" cellpadding="0" style="width: 100%; height: 30px; padding-bottom: 5px;
        border: 1px; border-color: #66CCFF;">
        <tr style="background-image: url('../../images/管理员页面/title_bg1.jpg'); background-repeat: repeat-x;">
            <td style="font-weight: bold; font-size: large; font-family: 仿宋;">
                <strong>【订单管理】</strong>
            </td>
        </tr>
    </table>
    <table class="editTable" cellspacing="1">
        <tr>
            <th>
                所属用户
            </th>
            <td>
                <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
                <img alt='查询' class="SearchUser" style="cursor" src="../../images/管理员页面/search.png" /><img
                    class="Clear_txtUserID" alt='清空' style="cursor" src="../../images/管理员页面/clear.gif" />
            </td>
            <th>
                省：
            </th>
            <td>
                <asp:DropDownList ID="drpSheng" runat="server" Height="20px" Width="100px" OnTextChanged="drpSheng_TextChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <th>
                市：
            </th>
            <td>
                <asp:DropDownList ID="drpShi" runat="server" Height="20px" Width="100px" OnTextChanged="drpShi_TextChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <th>
                区：
            </th>
            <td>
                <asp:DropDownList ID="drpQu" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                订单总额
            </th>
            <td colspan="2">
                从：<asp:TextBox ID="txtTotalFrom" runat="server" Height="20px" MaxLength="11"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
                    TargetControlID="txtTotalFrom" FilterType="Custom,Numbers" ValidChars="." />
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                    TargetControlID="txtTotalFrom" WatermarkText="只能输入数字和'.'" WatermarkCssClass="textwarmcss" />
                到：<asp:TextBox ID="txtTotalTo" runat="server" Height="20px" MaxLength="11"></asp:TextBox>
                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server"
                    TargetControlID="txtTotalTo" FilterType="Custom,Numbers" ValidChars="." />
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server"
                    TargetControlID="txtTotalTo" WatermarkText="只能输入数字和'.'" WatermarkCssClass="textwarmcss" />
            </td>
        </tr>
        <tr>
            <th>
                订单ID
            </th>
            <td>
                <asp:TextBox ID="txtOrderID" runat="server" Height="20px" MaxLength="50"></asp:TextBox>
            </td>
            <th>
                订单类型
            </th>
            <td>
                <asp:DropDownList ID="drpOrderType" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                订单状态
            </th>
            <td>
                <asp:DropDownList ID="drpOrderStatus" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                订单时间
            </th>
            <td>
                从：<asp:TextBox ID="txtAddTimeFrom" runat="server"  CssClass="easyui-datebox"></asp:TextBox>到：<asp:TextBox
                    ID="txtAddTimeTo" runat="server" CssClass="easyui-datebox"></asp:TextBox>
            </td>
            <th>
                关键字
            </th>
            <td>
                <asp:TextBox ID="txtKey" runat="server" Height="20px" MaxLength="50"></asp:TextBox>
            </td>
            <td colspan="2">
                <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <br />
    <asp:ListView ID="lvDate" runat="server" DataKeyNames="ID" OnItemDeleting="lvDate_ItemDeleting" OnPagePropertiesChanged="lvDate_PagePropertiesChanged">
        <LayoutTemplate>
            <table class="editTable" width="100%" cellspacing="1">
                <tr>
                    <th>
                        所属用户
                    </th>
                    <th>
                        订单ID
                    </th>
                    <th>
                        订单状态
                    </th>
                    <th>
                        订单类型
                    </th>
                    <th>
                        联系人
                    </th>
                    <th>
                        付款类型
                    </th>
                    <th>
                        省市区
                    </th>
                    <th>
                        详细地址
                    </th>
                    <th>
                        联系电话
                    </th>
                    <th>
                        联系邮箱
                    </th>
                    <th>
                        总额
                    </th>
                    <th>
                        订单时间
                    </th>
                    <th>
                        备注
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                  <%--  <%#GetUserName(Eval("AddUserID"))%>--%>
                </td>
                <td>
                    <%#Eval("OrderID")%>
                </td>
                <td>
                  <%--  <%#Enum.GetName(typeof(Order.statusOrder), Eval("Status"))%>--%>
                </td>
                <td>
                    <%--<%#Enum.GetName(typeof(Order.typeOrder), Eval("OrderType"))%>--%>
                </td>
                <td>
                    <%#Eval("Name")%>
                </td>
                <td>
                   <%-- <%#Enum.GetName(typeof(Order.typePay), Eval("PayType"))%>--%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToShortDateTime(Eval("AddTime"),"yyyy年MM月dd日")%>
                </td>
                <td>
                   <%-- <%#GetUserName(Eval("AdminUserID"))%>--%>
                </td>
                <td>
                    <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit" Text="修改"></asp:LinkButton>&nbsp;&nbsp;
                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="return confirm('您确定要删除该项吗?');"
                        CommandName="Delete"></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <EditItemTemplate>
            <tr>
                <td>
                    <asp:DropDownList ID="drpEditWGXZ" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="drpEditWGLX" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:TextBox ID="txtResult" runat="server" Text='<%#Eval("Result")%>' MaxLength="50"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtResult"
                        ErrorMessage="违规处理方式不能为空" SetFocusOnError="true" ValidationGroup="Update"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:TextBox ID="txtRemark" runat="server" Text='<%#Eval("Remark")%>' MaxLength="50"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtRemark"
                        ErrorMessage="违规说明不能为空" SetFocusOnError="true" ValidationGroup="Update"></asp:RequiredFieldValidator>
                </td>
                <td>
                  <%--  <%#GetUserName(Eval("RelationID"))%>--%>
                </td>
                <td>
                    <asp:DropDownList ID="drpEditWGDXLX" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToShortDateTime(Eval("AddTime"),"yyyy年MM月dd日")%>
                </td>
                <td>
                   <%-- <%#GetUserName(Eval("AdminUserID"))%>--%>
                </td>
                <td style="width: 130px">
                    <asp:LinkButton ID="lbtnCancel" runat="server" Text="取消" CommandName="Cancel"></asp:LinkButton>&nbsp;&nbsp;
                    <asp:LinkButton ID="lbtnUpdate" runat="server" Text="更新" CommandName="Update" ValidationGroup="Update"></asp:LinkButton>
                </td>
            </tr>
        </EditItemTemplate>
        <EmptyDataTemplate>
            没有数据<br />
            <br />
        </EmptyDataTemplate>
    </asp:ListView>
    <div style="padding: 4px; text-align: center;">
        <asp:DataPager ID="Pager" runat="server" PagedControlID="lvDate" OnPreRender="Pager_PreRender"
            PageSize="20">
            <Fields>
                <asp:NumericPagerField ButtonCount="10" CurrentPageLabelCssClass="CurrentPage" NumericButtonCssClass="Page" />
                <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="true"
                    ShowFirstPageButton="true" />
                <asp:TemplatePagerField>
                    <PagerTemplate>
                        共<%=Pager.TotalRowCount%>条
                    </PagerTemplate>
                </asp:TemplatePagerField>
            </Fields>
        </asp:DataPager>
    </div>
    <asp:HiddenField ID="hdlAddUserID" runat="server" />
    <asp:HiddenField ID="hdlAddUserID2" runat="server" />
    <asp:HiddenField ID="hdlAdminUserID" runat="server" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".SearchUser").click(function () {
                
            })

            $(".SearchUserAdd").click(function () {
                
            })
            $(".SearchUser2").click(function () {
               
            })
            $(".Clear_txtADdUserID").click(function () {
               
            })
            $(".Clear_txtAdminUserID").click(function () {
              
            })
        })
    </script>
    <br />

</asp:Content>

